﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace BNS_Education.IBLLs
{
    /// <summary>
    /// 基类的公用的方法
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public partial interface IBaseService<T> where T : class, new()
     {
        
         bool Add(T t);
         bool Delete(T t);
         bool Update(T t);
         IQueryable<T> GetModels(Expression<Func<T, bool>> whereLambda);
         IQueryable<T> GetModelsByPage<type>(int pageSize, int pageIndex, bool isAsc, Expression<Func<T, type>> OrderByLambda, Expression<Func<T, bool>> WhereLambda);
     }
}
